import { memo } from "react";

const CallbackChild1=memo((props)=>{
    console.log('子组件更新。。。',props)
    return(<div>
        name:{props.name} <br/>
        <button onClick={()=>props.changeList({title:'hello'})}>给父组件list添加一条todo</button>
    </div>)
})
export default CallbackChild1